package com.fy.redis.config;

import com.fy.redis.RedisHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author sunlei
 * @version 1.0
 * @date 2023/7/31 15:33:29
 * @description redis自动配置类
 */

@Slf4j
@ConditionalOnWebApplication
@Configuration
@ComponentScan(basePackages = "com.fy.redis.config")
public class RedisAutoConfiguration {
    @Bean
    public RedisHelper redisHelper() {
        log.info("++++++++++++++__________redisHelper init");
        return new RedisHelper();
    }
}
